﻿<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="">
  <link rel="shortcut icon" href="<?=base_url() ?>static/images/favicon.png" type="image/png">

  <title>氢元数据-视觉中国</title>

  <link href="<?=base_url() ?>static/css/style.default.css" rel="stylesheet">
    <link rel="stylesheet" href="<?=base_url() ?>static/css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="<?=base_url() ?>static/css/jquery.datatables.css">

  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
  <script src="js/html5shiv.js"></script>
  <script src="js/respond.min.js"></script>
  <![endif]-->
</head>

<body>

<section>

  <div class="leftpanel">

    <div class="logopanel">
        <h1>视觉中国任务</h1>
    </div><!-- logopanel -->

    <div class="leftpanelinner">

        <!-- This is only visible to small devices -->
        <div class="visible-xs hidden-sm hidden-md hidden-lg">
            <div class="media userlogged">
                <img alt="" src="<?=base_url() ?>static/images/photos/loggeduser.png" class="media-object">
                <div class="media-body">
                    <h4>John Doe</h4>
                    <span>"Life is so..."</span>
                </div>
            </div>

            <h5 class="sidebartitle actitle">Account</h5>
            <ul class="nav nav-pills nav-stacked nav-bracket mb30">
              <li><a href="profile.html"><i class="fa fa-user"></i> <span>Profile</span></a></li>
              <li><a href=""><i class="fa fa-cog"></i> <span>Account Settings</span></a></li>
              <li><a href=""><i class="fa fa-question-circle"></i> <span>Help</span></a></li>
              <li><a href="signout.html"><i class="fa fa-sign-out"></i> <span>Sign Out</span></a></li>
            </ul>
        </div>

      <h5 class="sidebartitle">Navigation</h5>
      <ul class="nav nav-pills nav-stacked nav-bracket">
        <li class="<?= !empty($clue) ? "active" :""?>"><a href="<?=site_url('Task_list/index');?>"><i class="glyphicon glyphicon-search"></i> <span>子任务列表</span></a></li>
        <li class="<?= !empty($task) ? "active" :""?>"><a href="<?=site_url('Task_list/task');?>"><i class="glyphicon glyphicon-list-alt"></i> <span>主任务列表</span></a></li>
	      <li class="<?= !empty($auto) ? "active" :""?>"><a href="<?=site_url('Task_list/auto');?>"><i class="glyphicon glyphicon-list-alt"></i> <span>自动任务列表</span></a></li>
        <li class="<?= !empty($msg) ? "active" :""?>"><a href="<?=site_url('Task_list/msg');?>"><i class="glyphicon glyphicon-list-alt"></i> <span>msg信息</span></a></li>
        <li><a href="http://eagle.elephant.vcg.com/compare/spider" target="_blank"><i class="glyphicon glyphicon-th-large"></i> <span>大象Elephant</span></a></li>
      </ul>


    </div><!-- leftpanelinner -->
  </div><!-- leftpanel -->
  <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: none;">
  <div class="modal-dialog">

    <div class="modal-content" style="overflow: auto" ></div>
      </div>
    </div>
  <div class="mainpanel">

    <div class="headerbar">

      

      <div class="header-right">
        <ul class="headermenu">

          <li>
            <div class="btn-group">
              <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                <img src="<?=base_url() ?>static/images/photos/loggeduser.png" alt="" />
                <?=$username;?>
                <span class="caret"></span>
              </button>
              <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                <li><a href="<?=site_url('Task_list/logout');?>"><i class="glyphicon glyphicon-log-out"></i>退出登陆</a></li>
              </ul>
            </div>
          </li>
        </ul>
      </div><!-- header-right -->

    </div><!-- headerbar -->


    <div class="contentpanel">
        <div class="panel panel-default">
            <div class="panel-body panel-body-nopadding">
            </div><!-- panel-body -->


                </div>

                <div class="table-responsive">
                    <div class="col-md-13">
                    <div class="table-responsive">
                        <table class="table table-success mb30">
                            <thead>

                              <tr>
                                <th>ID</th>
                                <th>msg信息</th>
                                <th>操作</th>
                              </tr>
                            </thead>
                            <tbody>
                            <?php foreach ($list as $v): ?>
                              <tr>
                              
                                <th><?=$v['id']; ?></th>
                                <th><?=$v['msg']; ?></th>
                                <th><a href="<?=site_url('Task_list/delete_msg/'.$v['id']);?>">删除</a></th>
                              </tr>
                              <?php endforeach;?>
                            </tbody>
                        </table>
                    </div><!-- table-responsive -->
                </div>
            </div><!-- contentpanel -->

          </div><!-- mainpanel -->
            <div class="row">
                <div class="col-sm-6">
                    
                </div>
                 <div class="col-sm-3 col-sm-offset-3">
                    显示 <input type="text" class="form-control" id="count-num" value="10" style="width:40px;display: inline-block"> 条&nbsp;&nbsp;
                    <button class="btn btn-success"><a href="">导出excel</a></button>
                </div>
                <div style ="padding-left: 50px;"class = "pagination" ><?php echo $this->pagination->create_links();?></div>
                
            </div>


        </div>
        



</section>
<script type="text/javascript">
function clue(id){
  var ss = $(id).data('clue');
  //alert(ss);
  $.ajax({
    url:"<?=site_url('Task_list/task_status');?>",
    type:"GET",
    data:{id:ss},
    async:false,
    success:function(data){
      console.log(data);
      if(data==111){
        $(id).parent().siblings('.status').text('已完成');
        $(id).parent().siblings('.status').css({ color: "green"});

      }else{
	alert('有子任务未完成请看msg');	
      }
    }
  });
}
</script>

<script src="<?=base_url() ?>static/js/jquery-1.11.1.min.js"></script>
<script src="<?=base_url() ?>static/js/jquery-migrate-1.2.1.min.js"></script>
<script src="<?=base_url() ?>static/js/jquery-ui-1.10.3.min.js"></script>
<script src="<?=base_url() ?>static/js/bootstrap.min.js"></script>
<script src="<?=base_url() ?>static/js/modernizr.min.js"></script>
<script src="<?=base_url() ?>static/js/jquery.sparkline.min.js"></script>
<script src="<?=base_url() ?>static/js/toggles.min.js"></script>
<script src="<?=base_url() ?>static/js/retina.min.js"></script>
<script src="<?=base_url() ?>static/js/jquery.cookies.js"></script>

<script src="<?=base_url() ?>static/js/flot/jquery.flot.min.js"></script>
<script src="<?=base_url() ?>static/js/flot/jquery.flot.resize.min.js"></script>
<script src="<?=base_url() ?>static/js/flot/jquery.flot.spline.min.js"></script>
<script src="<?=base_url() ?>static/js/morris.min.js"></script>
<script src="<?=base_url() ?>static/js/raphael-2.1.0.min.js"></script>
<script language="javascript">
    function oCopy(obj){
      //debugger
      $(obj).select();
        document.execCommand("copy",false,null);
    alert("复制成功!");
    }

</script>
<script src="<?=base_url() ?>static/js/custom.js"></script>
<script src="<?=base_url() ?>static/js/dashboard.js"></script>

<script src="<?=base_url() ?>static/js/bootstrap-datetimepicker.min.js"></script>
<script src="<?=base_url() ?>static/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript">
    $("#datetimeStart").datetimepicker({
        format: 'yyyy-mm-dd',
        minView:'month',
        language: 'zh-CN',
        autoclose:true
    }).on("click",function(){
        $("#datetimeStart").datetimepicker("setEndDate",$("#datetimeEnd").val())
    });
    $("#datetimeEnd").datetimepicker({
        format: 'yyyy-mm-dd',
        minView:'month',
        language: 'zh-CN',
        autoclose:true
    }).on("click",function(){
        $("#datetimeEnd").datetimepicker("setStartDate",$("#datetimeStart".val()))
    });
    $("#myModal").on("hidden.bs.modal", function() {
        $(this).removeData("bs.modal");
    });
    $('.right-keywords li').click(function () {
        $(this).addClass('active');
    });
    $('.right-keywords li').dblclick(function () {
        $(this).removeClass('active');
    });

    $('#custom-media-save').click(function () {
        alert('保存成功');
        location.href=location.href;
    })
</script>
<div style="text-align:center;">
<p>来源：<a href="http://h2design.taobao.com/" target="_blank">氢设计</a></p>
</div>
</body>
</html>
